package com.example.blogsystem_ssm.service;

import com.example.blogsystem_ssm.mapper.BlogMapper;
import com.example.blogsystem_ssm.model.Blog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BlogService {
    @Autowired
    BlogMapper blogMapper;
    public List<Blog> getBlogs(){
        return blogMapper.getBlogs();
    }
}
